package com.psp.park.service;

import com.psp.park.controller.res.bean.RAddressDetailBean;
import com.psp.park.controller.res.bean.RAddressListBean;
import com.psp.park.service.exception.ServiceException;
import com.psp.park.service.impl.PageResult;

public interface AddressService {

	/**
	 * 获取用户地址列表
	 * 
	 * @param page
	 * @param pageSize
	 * @param puid
	 *            园区业务员id
	 * @param uid
	 *            用户id
	 * @return
	 */
	PageResult<RAddressListBean> getList(int page, int pageSize, String puid, String uid, Integer type)
			throws ServiceException;

	/**
	 * 获取地址详情
	 * 
	 * @param aid
	 * @return
	 */
	RAddressDetailBean getDetail(String aid) throws ServiceException;

	/**
	 * 用户地址修改、保存
	 * 
	 * @param uid
	 * @param aid
	 *            为空表示新增，不为空表示修改
	 * @param addressee
	 * @param phone
	 * @param detail
	 * @param areaId
	 * @param pcds
	 *            省,市,区县,街道 逗号分隔
	 * @return
	 */
	boolean save(String puid, String uid, String aid, String addressee, String phone, String detail, String pcds,
			Integer type) throws ServiceException;

	/**
	 * 删除
	 * 
	 * @param uid
	 * @param aid
	 * @return
	 * @throws ServiceException
	 */
	boolean deleteById(String puid, String aid) throws ServiceException;

}
